package com.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName changjingshebeichufa
 */
@TableName(value ="changjingshebeichufa")
@Data
public class Changjingshebeichufa implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer chuafaId;

    /**
     * 触发条件
     */
    private String chufatioajian;

    /**
     * 出发参数
     */
    private Integer chufacanshu;

    /**
     * 场景id
     */
    private Integer scenesId;

    /**
     * 设备id
     */
    private Integer deviceId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Changjingshebeichufa other = (Changjingshebeichufa) that;
        return (this.getChuafaId() == null ? other.getChuafaId() == null : this.getChuafaId().equals(other.getChuafaId()))
            && (this.getChufatioajian() == null ? other.getChufatioajian() == null : this.getChufatioajian().equals(other.getChufatioajian()))
            && (this.getChufacanshu() == null ? other.getChufacanshu() == null : this.getChufacanshu().equals(other.getChufacanshu()))
            && (this.getScenesId() == null ? other.getScenesId() == null : this.getScenesId().equals(other.getScenesId()))
            && (this.getDeviceId() == null ? other.getDeviceId() == null : this.getDeviceId().equals(other.getDeviceId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getChuafaId() == null) ? 0 : getChuafaId().hashCode());
        result = prime * result + ((getChufatioajian() == null) ? 0 : getChufatioajian().hashCode());
        result = prime * result + ((getChufacanshu() == null) ? 0 : getChufacanshu().hashCode());
        result = prime * result + ((getScenesId() == null) ? 0 : getScenesId().hashCode());
        result = prime * result + ((getDeviceId() == null) ? 0 : getDeviceId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", chuafaId=").append(chuafaId);
        sb.append(", chufatioajian=").append(chufatioajian);
        sb.append(", chufacanshu=").append(chufacanshu);
        sb.append(", scenesId=").append(scenesId);
        sb.append(", deviceId=").append(deviceId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}